package com.shinechain.twitter;

import twitter4j.Twitter;
import twitter4j.TwitterFactory;
import twitter4j.conf.ConfigurationBuilder;

public class GetConfiguration {
    public Twitter getNewInstance(){
        ConfigurationBuilder cb = new ConfigurationBuilder();
        cb.setDebugEnabled(true)
                //.setOAuthConsumerKey("TRZz2srCRfDYgxMNKfcEkaEbz")
                .setOAuthConsumerKey("ipp4zV5GKKUncWGmbRAFeV3Yb")
                //.setOAuthConsumerSecret("Ed1VOG8mbaKNB1KwmJ0JLb6vkU4BRiVqAe1E7tEJl7is1DbSaR")
                .setOAuthConsumerSecret("OZmBI2ZdJaqGMXwE46QI0RnrSUJj7h2WRTMWuENCn2Mm9Hh0OZ")
                .setOAuthAccessToken("T_KRggAAAAAA4b3XAAABZRxM66k")
                .setOAuthAccessTokenSecret("wrYmgySFRY84jpfIdjK0dG3axvVmD82R");
        TwitterFactory tf = new TwitterFactory(cb.build());
        //Twitter twitter = tf.getSingleton();
        Twitter twitter = tf.getInstance();
        return twitter;
    }
}
